package com.jiayou.im.entity

import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableLogic
import com.baomidou.mybatisplus.annotation.TableName
import com.baomidou.mybatisplus.extension.activerecord.Model
import java.io.Serializable
import java.time.LocalDateTime

/**
@author 李 双
@data   2020-11-20  11:54
@info
 */
@TableName("im_relation")
data class Relation(
    /**
     * 用户1
     */
//    @TableId("id1")
    var id1: String? = null,

    /**
     * 用户2
     */
    var id2: String? = null,

    /**
     * 创建时间
     */
    var createTime: LocalDateTime? = null

) : Model<Relation>(), Serializable {

    companion object {
        private const val serialVersionUID = 1L
    }
}
